package com.gyg.client;

import com.gyg.returns.RespEntity;
import com.gyg.vo.param.MessageParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "cloudMessageClient", url = "${cloud.box.url}")
public interface CloudMessageClient {

    /**
     * 公告列表
     * @return
     */
    @GetMapping("/cloud-message/list")
    RespEntity cloudMessageList();

    /**
     * 发布公告
     * @param messageParam
     * @return
     */
    @PostMapping("/cloud-message/insert")
    RespEntity insertNotice(@RequestBody MessageParam messageParam);
}
